package com.zju.cst.spider.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zju.cst.spider.domain.News;

public interface NewsMapper {

	public void insert(News news);

	public void insertByList(List<News> news);

	public void update(News news);

	public void updateByList(List<News> news);

	public void delete(News news);

	public void deleteById(@Param("id") int id);

	public void deleteByList(List<News> news);

	public void deleteByIds(List<Integer> ids);

	public News select(@Param("id") int id);

	public List<News> selectByIds(List<Integer> ids);

	public List<News> selectAll();

	public List<News> selectPage(@Param("start") int start, @Param("length") int length);
	
	public List<News> selectByClassify(String classify);

}
